package mainMenu;

import lottery.office.LotteryDatabase;
import drawings.Drawing;
import drawings.DrawingMachine;
import drawings.DuzyLotekDrawingMachine;
import drawings.MalyLotekDrawingMachine;
import drawings.MultiLotekDrawingMachine;

public class Lotto {
	private char chosenGame;

	public char getData() {

		TextIO.putln("Choose game");
		TextIO.putln("1: Duży Lotek");
		TextIO.putln("2: Multi Lotek");
		TextIO.putln("3: Mały Lotek");
		TextIO.putln("0: aby zakończyć");
		TextIO.putln();
		TextIO.put("? ");
		chosenGame = TextIO.getChar();

		return chosenGame;

	}

	public void menu() {
		while (chosenGame != '0') {
			getData();
			if (chosenGame == '1') {
				DrawingMachine duzy = new DuzyLotekDrawingMachine();
				Drawing drawing = duzy.draw();
				duzy.displayDrawingResult(drawing);

			} else if (chosenGame == '2') {
				DrawingMachine multi = new MultiLotekDrawingMachine();
				multi.displayDrawingResult(multi.draw());
			} else if (chosenGame == '3') {
				DrawingMachine maly = new MalyLotekDrawingMachine();
				maly.displayDrawingResult(maly.draw());
			}
		}
	}

	public static void main(String[] args) {
		//Lotto l = new Lotto();
		// l.getData();
		//l.menu();
		
		LotteryDatabase ld = new LotteryDatabase();
		ld.readDrawing();
		
		
		
		
	}
}


